package com.queming.core.respository;

import com.queming.core.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;


/**
 * @author 陈词调
 * @date 2022/4/17
 */

public interface UserRepository extends JpaRepository<User,String> {

Optional<User> findByUsername(String username);


User getByid(String id);



@Override
Page<User> findAll(Pageable pageable);
}
